validating some stuff