added validations for event name and url