added basic validation rule