Fixed layout of header and added logout functionality