fix changePassword/Email functions