Fully working Login, and createUser functions.