Web authentication bug fix