Fix login_check route to prevent code 500 error on GET-request.
Merge pull request #399 from Dropaq/login_check_route_fix

Fix login_check route to prevent code 500 error on GET-request.