changed Login UI and its listener to suit controller