Added flash helper and styled the messages