fixed form errors on ajax submit