implemented saving of user info into db.

minor display changes to template.