Allows readonly to be toggled and 'value' to work accordingly