Reads the value of a text field