Fixed login failure redirection issue.
Fixed known bugs.