add authentication to yogi update and edit actions