fixed upload error in user controller