Currently, when we try to login with an atmosphere handle that doesn't exist (e.g from a typo during login), the app redirects us to a browser default error page (throwing a 500 internal error), instead of handling this login error inside leaflet. This might confuse some users.
Suggestion: handle error cases in the login dialog directly for better UX.