fix some code login