First attempt at fixing redirect loop (Issue #52)
Fixed 500 error in login/check.
Merge pull request #57 from gmahomarf/52-Login-Redirect-Loop-Fix

First attempt at fixing redirect loop (Issue #52)