Update user_controller.rb

Improve update email changing
Factorize code for json except params in update method