Ensure user email uniqueness by creating a database index on the email field and requiring that field to be unique.
Create database index for user_name to ensure uniqueness
Create index on comments user_id for efficiency
Convert login user_name input to lowercase.
Downcase User email field prior to uniqueness validation
Add before_validation conversion to downcase for user_name and email to ensure proper validation of uniqueness