title: Login system on Python
body: <p>This is a really newbie question. 
  So, I am trying to code a login system in Python, where it asks for an username (only 1 username available), if the username typed in is incorrect, it says the username is invalid, if it is correct, it asks for a password, if the password is incorrect, it says incorrect password and proceeds to ask for the password once again, and if the password typed in is correct, it just says logged in.</p>
  
  <p>What I've been able to do so far is:</p>
  
  <pre><code>a = 0
  
   while a &lt; 1:             
       print ('Username:')  
       name = input()
       if name != 'Teodor': #checks the username typed in
           print ('Invalid username.') 
           continue
       else:
           print ('Hello, Teodor.')
           print ('Password:')
           a = a + 1
  
   password = input()
  
   b = 0
        while b &lt; 1:
       if password != '1234': #checks the password typed in
           print ('Password incorrect.')
           b = b + 1
           continue
  
       else:
           print ('Password correct.')
           print ('Logging in...')
           print ('Logged in.')
           break
  </code></pre>
  
  <p>This works, although it does something I don't want if the user types in the incorrect password. If the user types in the incorrect password, I wanted the program to tell the user 'Incorrect password' and proceed to ask for it once again, but it doesn't do that, it just prints 'Incorrect password', and then it terminates. It works 100% on the part where it asks for the username, though. </p>
  
  <p>It's a little thing I am missing. How can I fix this?
  Thanks a lot!</p>