moved user logic into UserController