Validation infrastucure helper for angular js apps