Add offer validation function