added some functions for validation to security class