Implemented logout. Database logs now updated when a user logs in/out.