Updated the codebase to check the event editing for non authorized owner and made a manytoone relation with the Event and user table