Fixed if statements while validating input of site instances