Validate options from localstorage before using.