getting the default value from the input element