started working on rules for validation