Validation Function added