added regex for username auth