Fixed routes and flash messages.