Added flash and cookies