Chapter 5 case 1 and case 2 for everything except SSN validation in case 2