added form verification for search