To change the default database for the login to a different database:
USE [master]
GO
ALTER LOGIN [John] WITH DEFAULT_DATABASE = master
GO
To change the default database for a login using SQL Server Management Studio (SSMS):
Right click on a login, click 'Properties', and choose default database: