Revised flow for authenticating peers