Registration issue fixed

Registration was allowing user with the same agentid and clientid to
register any number of times