Update auth functionality