validate img upload for topics and users