complete password hashing and sign in