diff --git a/api/resolver.py b/api/resolver.py
index <HASH>..<HASH> 100644
--- a/api/resolver.py
+++ b/api/resolver.py
@@ -197,7 +197,7 @@ def format_profile(profile, fqa, zone_file, refresh=False):
 NAME_PATTERN = re.compile(OP_NAME_PATTERN)
 NS_PATTERN = re.compile(OP_NAMESPACE_PATTERN)
 def is_valid_fqa(fqa):
-    if (NAME_PATTERN.match(fqa) is None):
+    if (NAME_PATTERN.match(username) is None):
         return False
     try:
         username, ns = fqa.split(".")
fixes bug where names shorter than 3 letters were marked as malformed by resolver