addressing issue with flash messages and potential issue with mongodb session storage. use cookies to step around the issue. look into it later.