Refactor LoginView in invigilator.