Added validation to name field