search error and fixed form helper