tts_login with help from mj