fix some issues in login vc