Some code clean up before porting login form to Angular partials
User can login