added regex to check if valid email