Get rid of if statement in disabling fields