Added JavaDocs for validateField meathod