emvecchi commited on
Commit
49d2940
1 Parent(s): eb4a746

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -318,9 +318,9 @@ elif st.session_state.current_index == -2:
318
  navigate(1)
319
  else:
320
  with st.form("data_form"):
321
- st.session_state.user_id = st.text_input('Please enter your user ID', value=user_id_from_url)
322
- if st.form_submit_button("Submit"):
323
- navigate(1)
324
 
325
  elif st.session_state.current_index == -1:
326
  add_annotation_guidelines()
 
318
  navigate(1)
319
  else:
320
  with st.form("data_form"):
321
+ st.session_state.user_id = st.text_input('User ID', value=user_id_from_url)
322
+ add_validated_submit([st.session_state.user_id], "Please enter a valid user ID")
323
+
324
 
325
  elif st.session_state.current_index == -1:
326
  add_annotation_guidelines()