validation trap