fixed require login redirects and warnings