check files format in post validator; init objs in form; move search method to form class