Added console.log output for name

Added console.log output for name