This isn't a very secure way of doing this, but it will work for now. (The prefered way would be to store a salted, hashed password instead of storing the password in plain text.)