Fix bug on CAS xmpp login