added logout and code review changes
Merge pull request #14 from markmccanna1/user_authentication

Added Logout and Code Review Changes
fixed merge conflicts