Slight refactoring in userscontroller