added validator; fixed spacing issue