validation fix (php syntax)