created directive to check for taken usernames during registration