user validation in Ruby

Simple program that validates user’s name. In this program I used
regular expression to expedite the process.