Smart redirect after login

We've improved the web application login functionality so that it now redirects to the previously requested page after failed authentication.