Why does it keep redirecting to login

found a solution