Added login listener. Modified UserService.