Functionality to enable/disable form fields depending on input