added trim and to lower in domain validation