Adding auth
search function