Simplified check_login(), added stop_when_done

The current script leaves the bottle server running.  Adding stop_when_done=True to the webbrowser.open() call shuts down the bottle server.