Made it so that a NotLoggedIn exception is thrown whenever a user isn't logged in, so that it can be dealt with at the end of the page along with the rest of the error conditions