If the password fails the regex, then it doesn't check to see if the username and password is valid. You would probably need to add a recordset to the page and filter it with the "failed validations" values so you could check to see if it failed validation but would have found a record for login if it hadn't. If that recordset filtered by the failed validation username and password has a row in it, then you know they would have been logged in if the validation hadn't failed.