Closing registration and changing messages accordingly