Change attr to prop for inputs