email validation in client/server