Updated login status display logic. Moved user logic in routes into a UserController.