Added code for user unregistration