Still trying to figure out the problem ... I created a new app using the wizard, and without changing anything, I run the app and try to login and getting the same problem.
I can login but anything I try to access (that needs a valid login) is not working. There must be something wrong with the login setting the "logged in" variable.