eror code = 1 and image upload fixed