fixed changePassword
* new password was not getting encrypted before getting
  saved to the persistence.