Transaction wrap
Flash notification
Added Sleep after logout to avoid weird Devise error