Getting values from input fields and log them in the console.