update to logic in student form to fix user_id issue