added relationships and validations for paperclip image uploads.