Regex to check users errors