Google Apps Script validation issue in Google UiApp

I have been trying to figure out Google Apps Script validation in Google Sites and have yet to make the validation part work correctly. I need to validate 2 things: That there is at least 5 characters in the “location” textbox (up to 100) That a date has been selected from the dropdown If both conditions are not met, then it should make visible 2 things: warnException warnExceptionMes That’s it. The rest of my logic is working great. I am just starting out. The full logic is listed below. I have replaced our domain info with xxxxxxxxx. So far, it