Implemented the socialSecurityCheck() function.