front end validations implemented