Added user login functions, and route functions