modified hash algo. fixing usermanager