set json values back to null when invalid info is entered