preventing navigation wo login