Fix redirection after login.

User is now redirected to statistics page after a successful login.