Made login skip to edit page if already logged in