Add the front end validation