helper function to check if giving user is required to reset password