Update field.class.php

Fix #39 : text field not displayed