Pressing enter on input fields is returning running console.log nifty