fixed : major bugs on registation process