add validation to offers
fix purchase offers