validation on event creation. javascript alerts all over the place