Added refactored version of validateInput() function, fixing (I hope\!) project create error message timing issues