Page navigation based on a value from firebase database

#1

In firebase have a profile node where each profile has got a type key which can be of two types(ie. Home user, Technician).
Now i have the function of navigating a user to tabspage or newprofile page depending on whether a profile is already created or not.
Now i want to navigate the users to two different pages depending on the value of the type key. For the “home user” it will be “PostJobpage” and for the “Technicians” it will be “JobListPage”
How can i achieve this?
My current login page

import { LoginResponse } from '../../model/login/login-response.interface';
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, ToastController } from 'ionic-angular';
import { DataProvider } from './../../providers/data/data.provider';
import { User } from 'firebase';
import { TabsPage } from './../tabs/tabs';

@IonicPage()
@Component({
	selector: 'page-login',
	templateUrl: 'login.html'
})
export class LoginPage {
	constructor (
		public navCtrl: NavController,
		public navParams: NavParams,
		private toast: ToastController,
		private data: DataProvider
	) {}

	login (event: LoginResponse) {
		if (!event.error) {
			this.toast
				.create({
					message: `Welcome ${event.result.email}`,
					duration: 3000
				})
				.present();
			this.data.getProfile(<User>event.result).subscribe((profile) => {
				console.log(profile);
				profile.val() ? this.navCtrl.setRoot(TabsPage) : this.navCtrl.setRoot('EditProfilePage');
			});
			// this.navCtrl.setRoot('EditProfilePage');
		}
		else {
			this.toast
				.create({
					message: event.error.message,
					duration: 3000
				})
				.present();
		}
	}
}