modified atResetPassword to be used also for account enrollment