Sql Server Management Studio can't remember passwords
As said in the link from comment, It's a bug in SQL Server Management Studio

SQL Server 2012 Management Studio spuriously forgets password. and SQL Server Management studio solution explorer doesn't remember SQL authentication password

Some alternate solutions may work for you.