added better error handling to logo image upload