I am trying to make an app with two different user types. There are two different home screens I want to route to depending on the type of user is logging in. I am not able to do this with either user type to their respective home screen.

EDIT: updated code