Function is now fixed. It prints the name of the current user
New functionality added to the method