Fixed error messages, username and group name were mixed up
Pass Subject of original query to listener; now the callback function is executed under that subject instead of the guest subject.