Getting Primary Key as NULL after creating a new user?

This is a very useful article to know about some unexpected id behaviour