Security Updates (2)

Omitted test in previous update for getUserType() function