validations in back end