kill server on error, fix login link