revise sitewide model validation function; add to template context
only display edit links if user logged in and models are valid