Added many more validation functions.