Added a login listener