validation added for name field