Fixed the password encryption bug