Added flash messages and styling