Added some comments and email sent OK validation