Add Regex check for basic auth, plus minor fix.