Added nice errors inspired by Mongoid.