adjusted creating an event feature to ensure required fields are submitted