the code on this page ;looks correct for encrypted passwords.
Double check in the users table that the full encrypted password is being stored.
an encrypted password is 40 characters long, if the users table does not allow at least 40 characters, this can cause a problem.
if you still having troubles, send a copy of the registration page.