Completed js validation for event form.