added authentication to create tables