fix the empty note name issue
add the exception handling for invalid authentication