Fix syntax error and add a check to make sure the license key isn't empty