base validation