LeaveEvent and debug

Added leave_event to user registration control, and added some debug shit