updated validation and admin notice functions