require logged in user for edit page