Added name validation for rails