Successfully  hashes password and logs in