implemented file upload validations. using carrierwave for uploads