solved auth redirection