Consolidate imports from one package on one line
Let the template figure out whether the user is logged in
Simplify page direction logic for loginPage