Added sessions and error messages in forms.  The error messages
 don't work too great for images and only work a little for galleries