Add a method in checkout model to validate order