setup login view.