Added search function
changed sigin button to submit
added a get method for search