changePassword method corrected