You have modified the login page to use an encrypted password, but the password being stored by the registration is not being stored in the encrypted format, you will need to modify the registration to store the password in the encrypted format if you wish to use encryption in the login behavior.