back end validations added