added error partial to display errors in the views when an object is invalid