fix devise sessions and registrations