Fix your indentation.

You'll see this:
PHP Code:
    case "register":
        if(
args[2].size >= && args[2].size <= 20)
        {
            
haslogin searchforlogin(args[2]);
            if(
haslogin == true)
            {
                if(
args[3].size >= && args[3].size <= 25)
                {
                    return;
                }
                if(
haslogin == false)
                {
                    
iprintlnbold("ye");            
                    
createadmin(args[2], args[3]);
                    return;
                }
            }
            
self thread tellmessage("Password is too short or too long. Min 5 characters, max 25.");
            return;
        }
        
self thread tellMessage("Login is too short or too long. Min 3 characters, max 20.");
        return; 
the if(haslogin == false) is inside the if(haslogin == true)