emails sending and validation.