Add bosh url check
fix login form submission on connection failure