Fixed isFieldsValid()