Added store data function.

Added the function that saves the values of the form as an object into
local storage.