setup default loggedin=FALSE (causes undefined err)
fixed chosen
fixed undefined sessionkey