Added checking if a user has accepted the invitation before storing the event.
Added checking event format before storing it.