fix agent username and password nullability