fixed login issue with latest ejabberd