Refactored update in password_controller.rb.
Refactored password#update.