changes to form php code