Fixed login redirection issue