added check to mail if it is unique