Editor is being redirected to frontend after logging in