fixed validation rule