Changed email regex to match front-end code