Altered the selection of the user, to user the global user object instead of the current node. refactored the code a bit.