Fix required validator bug