added logout by clicking on username in navbar