To overcome this issues, first uncheck "Remember my ID and password" and log-in with your username and password then upon successful connection, log out and enter the credentials again and this time check the above mentioned option and Yahoo Messenger will always keep the details stored on your computer and use them every time you want to connect or log out.