fixing authentication & authorization examples