update login view and controller