Well, looks like they let you go, so they didn't do anything wrong. Of course, asking for your name is fine, just give them your first name, though SSN and address is kinda strange.
You're not required to carry ID with you, but if you had broken the law, no matter how tiny (such as no lights) they would be able to arrest you.