fixing authing redirection