Extend authentication logic