added functionality to search and authentication is in sync with backend