added required validator