authentication form bug fix