Only logged-in users can create activities.
Checking if the user that is editing the activity is the same as the activity owner.