added search and user authentication