Fixed required validator bug

IMO, need some fine-tuning, but it seems to work. Please test!!!