We could move this line out of the first `if` clause, due to if `user===''` there is a return, and in other case we have to call in any case to `window.history.back();`