Fixes #9 - correctly check if the private checkbox is checked

This code is too hard to test in it's present state and so I'm just submitting this as a quick fix