added registeruser for event method