updated flash messages which is completely unnecessary at this stage