Added flash messages
Changed link_to's path to root_url instead of '/'