Add front end validation