added validation event handlers and messages, not functioning yet