Fix new-note styles, cursor position and prevent it from submitting an empty string'