add rules validation