Create place for auth functions in client code and move password hashing there