adds validations