fix a small issue when sign in