refactors barcode-login view.