Syntax fix.
Removed log message.
Sending status code of /validate_login in http header now.
Thanks @jhbruhn for the test.