Stability improvment for authentication