added length validation for name

its not working tho