added login and register to msgs