Fix checkifalreadyregistered