Conditionally render input box