finished off the login form and added some new features and comments to both the login and main forms