System preferences>users and groups>turn off guest account. Then set your account to login with password.
Options include "Require password on wake up" which is what I think you mean. When the Mac goes to sleep you will be prompted for your password with the box you describe.