#525504 by gpk, Dave Reid, sun: anonymous users should not have a contact form; also with added code documentation