Replace CRLF with LF and fix some spacing errors.
Fixed error and logout page redirections (#6, #7).