add input validation in email