Updating authentication to use token based auth.