Update user_controller.rb

- Refactored update and destroy method of user controller
- avatar upload has been moved on user update method