I add this class to library/My/Validate/PasswordConfirmation.php
I think you may want $context['user_password'] as that is the name of your "first" password element
$context['user_password']