added lookup maps for validation functions
changing enum naming to make a dispatch table possible