adds catching for bad login/url