Validation functions seem to work finally.