Finally fix unique username bug: follow strong parameters instructions at http://blog.12spokes.com/web-design-development/adding-custom-fields-to-your-devise-user-model-in-rails-4/