Angular directive for validating integer inputs