added login, logoff, and some flash messages