added validations and testing and mail after order