removing unused method from loginView.js