Added registerFormUrl and fixed issues with eventId