UI is removed after validation