code to check if entered email is valid using smtp or pop