front end validations added