preventing duplicate registration