Setting redirects for account pages depending on whether user is logged in

Additional clean-up of written elements