made it so if cookie is set you dont have to log in