add flashes to login and logout