You cannot validate a name automatically. What’s a real name? How do you define a real name?
The only way to validate identity is to ask for a photo ID and let a human verify it. This is even not a 100%, as there might be some Jason Bourne trying to use your system – so he’s not using a “real” name either.
Also consider that there may be laws prohibiting or restring your from asking and storing Photo IDs of your users.
solved Rails 4, is there a gem that validates a user is entering a real name?