added rules for validation