Ensure login and password exclude `\n`