Check whether the user is logged in when sending email

The checks were already done when rendering the contact forms, but not
properly when the message was being sent.
Merge branch 'development' of github.com:kata-csc/ckanext-kata into development