added login failure packet and integer byte handling