removed bug of required field validator