Yes, id will be assigned automatically. Added the validation following your suggestion.