add form validate for shop edit/create page.