Week 4 Commit

Got user log in to work, restructured code to make it easier to read
and changed local variables to global in the header file