Add login and logout functionality. Add header file to deal with general header functionality