only proceed to control screen if the code and ip are good