users_controller optimization