fixed issue where required fields weren't clearing out properly