Altered showUser function to take online status into account