adding function which execute risk rules

adding a function which execute risk rules. this function can be hooked so it's possible to create custom risk rules