I dislike case statements because of their error-prone-ness and their verbosity... Would it be easier to just do `var userHome = (userType == 'learner') ? '/backpack' : '/dashboard';`? Anyways, just a suggestion, what you have there is fine.