Moved user logic from routes.php into specific controller file