Debug of login and register