Added search form validation

The search form also keeps its values now