AuthenticateService regular expression fixes.