fixed the changePassword method.