Added javascript check on add event form