Added validation for note entry