Added function validateEmail.

Addition of the validateEmail function. AKA Function # 4