created a conditional statement to check if there is a field but no value in the URL string