fixed form errors