Created a login listener