add error checking and number input box