implemented additional methods in Form.php and added new Val.php class