Checking for valid input on calculate page with colours done