merged validation into common