add partial for flash error messages, remove commented out partial
more error checking and redirect to root when page not found