added validations in create/edit event dialogs