Adds history page and login errors