Authorization callback now redirects to the main page with the credentials cookie