update lib.forms.php