Made it so the controller only has to call register and login and not worry about the callbacks