added local storage api

local storage allows whatever user has entered to be stored on their
machine