Fixed user model so only logged in user can edit posts