Fixed required validator bug