Added more to do authentication and safely transmit the token