Update authentication script