Stateful Assignment

I can't get the 'logout' button to work though.....