validate email before entering the form