Turbulent dynamo in the two phase ISM