Task 349: Made fields required. Adjusted function that assigns name to notes inputs.