Added devise transactions. Fixed username.lowercase bug