refactored search to be RESTful
fixed clicking search result on registration