new password was not getting encrypted