handling duplicate registration