adding email validation
email validation on server side