Update authenticate.sh