changed the way /editor redirect is handled if user is not logged in