wokring authenitcation and create a note