When uploading an ad, check if user is logged in.