Fixes #4 where when a user tries to access a restricted resource, and
then logs in, they are taken to the same resource they were just
requesting.