Adding check for zero cheese count on cloud code.

Also added the cheeseCount update on login.