Adds profile page, fixes logout