Fixed redirect on team pages to login

BUT: requires clearing of cookies for it to work first. Not ideal...ref #857