fix login form bug