Add limits to the InputField