title: User input doesn't match with the data in the file
body: <p>Im currently a new student new to python. I have face some problem with my code. You can see the source code below here, this program with start with a prompt asking the user to input their user id. Then the program will match the user id that user input with the user id exist in the StudentIDs.txt but it seem like it is not working very well.  </p>
  
  <pre><code>def login_menu():  
      while True:
          user_input_id = (input('Please enter your student ID: '))
          with open('StudentIDs.txt', 'r+') as student_ids:
              if user_input_id in student_ids.read():
                  print('You have access to the system')
              else:
                  print('Invalid ID, the ID is not in the database, please try again')
  </code></pre>
  
  <p>Here is the data in the StudentIDs.txt </p>
  
  <pre><code>1904983
  1904984
  1904985
  </code></pre>
  
  <p>When I input 1904983 I will get access to the system but when I input 190 or 1 or 9 I will also have access to the system, this made the program not logic at all. Can someone please explain to me what's wrong with my program or maybe give me a help?</p>