add log to save info of login, reset and msg to debug