Fixed faulty login view initialization logic.