fixed validate now trying to get values not null in localStorage