I have a Rails app (5.x) with Devise (4.6) and the next custom sessions controller:
class LoginController < Devise::Sess