add basic validation