setting the id when you post a new record