Fix error on login