example of client & server validations