Fix getType Function

Change getType to getUserType
Merge pull request #1 from metalstache/master

Fix getType Function