Updated theme to support proper logout
add flash messages to primary template