Page navigation based on a value from firebase database


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';

	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) {
					message: `Welcome ${}`,
					duration: 3000
				.present();<User>event.result).subscribe((profile) => {
				profile.val() ? this.navCtrl.setRoot(TabsPage) : this.navCtrl.setRoot('EditProfilePage');
			// this.navCtrl.setRoot('EditProfilePage');
		else {
					message: event.error.message,
					duration: 3000