removed duplicate listeners from logincontroller.