improved regex to test if email is valid or not.