Adding flash for error messages in loading flow. Fixing some minor errors in the view.