add authenication to inner pages