adding a bunch of client side validation for creating and editing calendar events