Properly connects login and register input fields