As a Dev, I want to create the validations to the fields: user_id and event_registration_id
Acceptance Criteria:
event_registration_id:
- Must be set
- Must be an integer
- Must be a valid event registration id
- The end date must not be in the past
- The status does not have to be 'open'
If fields validation fails we must return the reason of the error in the response:
- Invalid registration_id
- Registration is past
Participants should be able to unregister if the event is closed
- Because: they may no longer be able to attend the event (so they should be able to update their status)
Participants should not able to unregister if the event has ended
- Because: organizer should have a complete list of who intended to attend, whether or not they did