Add validation for goal creation and note creation #12 and #10