Email validation on registration working