Advanced rules for data input and validation