basic front end validation