Updated the authentication to use the HandshakeFrame.
Fixed a loop that was caused by the first authentication packet.