nil check on username and domain