redirect /login and /register to /account if user is already logged in