more work on account page, and redirect user on certain pages if they aren't logged in