added input check fp lab 1 hw