pass userId to note creation