#issue 224
code clean-up
login view refactoring