now saves login and projects

integrated teresa's changes and resolved database issues:
good format to use is 
somevariable = databaseobject
make changes with somvariable
databaseobject = somevariable