Add PrimeFactorerValidator; modify generate controller and index view to validate user input