add validation to save purchase : back