Add an autentication function and define the format of the authentication packet