validate email before upload