Fix icon size bug
Refactor login check