add main validation