Improve checking of the ebib cookie on login