Fixed error in user_controller