Devise login redirect hack fix