Added the form validation and styled the search bar