Updated authentication redirection