minor html change
added message flashing and fixed logout bug