minor code fixes; time.sleep not working for wrong passwords