Adding auth handler