added zero padding to validate