added the unique and 'ensure_index' validations to the email model