fix validate error for emails