Adding user.whenAuthenticated()
Adding a function to generate hashes of passwords.