Fix bugs in login design