front end validations