fixes #6

Redirects a user to the login page and back to where they were if they
don’t have permission to the page they want to go to.