title: How to go back to referer after login failure?
body: <p>For login success there is a parameter <code>use_referer: true</code>. For login failure there is only <code>failure_path</code>, which isn't what I'm looking for.</p>
  
  <p>Second thing: How to do that and pass error message?</p>
  
  <p>Third thing: How to go back to referrer after logout?</p>