login and gsub