Raise error after logging in server