Fixed redirect of signing view if credentials are incorrect, and minor improvements