logic for Register test for hotline