Update UserManager.php

Fix not working authentication