Added create and login user functionality.