login VC and some style refactoring