Password Library and Creating a Variable Integer

Ok, I can see why separating the password entry mode and the security mode would help a lot. Thanks!