login form bug fix