fixed logout issue with flash, fixed console.log in notifications