Prevent empty inputs