added modifications to users_controller