Library PHP problem with loginUser()