fix bug in offer form validation