authentication structure setup