redirect users to /register when coming from templates or share url
redirect to /login when going anywhere else (/project /project/1234)