Add auth functionality