remove trailing whitespace
fix issue with not being able to see the site when logged out + more

* Users::user_count() should return a number
* more strict if statements
* add comments