Fixed the required validator