Validating method security