Validation formular and validation functions