Refactor add note route.
Refactor the way that addNote handles empty note.