password hashing for login and registration working