while True:
name = raw_input("please input your name:")
if name == 'dingwei':
password = raw_input("please input your password:")
while password != 'cbh':
password = raw_input("please input your password:")
print "----------------------------------"
print "welcome to login to system!"
break
else:
print "user %s not found,try again!" % name