Fix redirect logic for logging in
Merge pull request #2 from pcorliss/master

Fix redirect logic for logging in