add max length input and max numbers