Implemented below metntioned changes :

1. Displayed error message.
2. Make form input field inline.
3. Moved search input field to extreme right.
4. Optimised isValid() method