added basic valid helper