Issues with input field not taking data when put in