Added validation check if non integers were passed in the three input fields