updated getUser method