Use encryption to store the XMPP password
Use barejid instead of own function