Simplify, and correctify.

Simplify: remove switch statement, not needed, framework will only
call us if the user has logged in.