add max length to input