Fixed bug where error is shown on logging in for the first time.