diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html
index 8c97cd2e7806bb7878735e8bde54bc2f2c0cbd27..718a9a04d81cbdd5c9180d7545f699ffc7831b01 100644
--- a/src/app/login/login.component.html
+++ b/src/app/login/login.component.html
@@ -28,7 +28,7 @@
                         </div>
                         <div fxLayout="row" fxLayoutAlign="space-around center" style="width: 100%">
                             <button mat-flat-button (click)="login()" color=primary style="width: 25%; text-align: center">Login</button>
-                            <button *ngIf="(authService.loggedInAuthZ | async).length > 0" mat-flat-button  routerLink="/launch" color=warn style="width: 25%; text-align: center">Cancel</button>
+                            <button *ngIf="(authService.loggedInAuthZ | async) != null && (authService.loggedInAuthZ | async).length > 0" mat-flat-button  routerLink="/launch" color=warn style="width: 25%; text-align: center">Cancel</button>
                         </div>
                         <div *ngIf="selected !== undefined" [innerHTML]="selected.desc">
                         </div>