Login now auto-redirects to template page if already logged in.