It's not to difficult: but exactly how you do this depends on how you handle the login on the first place.
Personally, I would bring the main form up first, and open the login form in the Load event:
frmLogin log = new frmLogin();
if (log.ShowDialog() != DialogResult.OK)
{
Close();
}
You then do all the validation in the login form and exit with OK or Cancel depending on if the logon works or not - if it doesn't, then the code above closes the application.
All you then have to do is add a property to the login form which returns the login user name, and access it in the main firm code:
Text = "User : " + log.UserName;