add email validation in backend