username and service name should not contain "\n"