user validation & email sending