fix the bug when logging in/ UI minor adjustment