Move account creation logic into user class
Move authentication into User class