Update UserManager.php

Fix not working authentication
Merge pull request #55 from knedle/patch-2

Update UserManager.php