debug login and register form