Logging in, store encrypted password into db.