add a method in application controller that checks that an id is a numeric value