Fix 500 error due to unsuccessful login

This fixes some strange devise errors, which seem to occur due to a bug
in / strange behavior of ActionController::Live.
See: https://github.com/plataformatec/devise/issues/2332