adding the authentication pieces