How Do I prevent a duplicate registration