added input box checking code