Added check for same file of that particular user.