Changed image upload error checking
Added field for file upload
Added file upload to user edit & new pic_upload function