Initial logic implemented for LoginView and Ctrl