added in flash messages and final styling