set login view and clean up loader view.