add a user loading handler