added login listener (but it won't work)