There're different settings to change the way your phone will lock. You can decide the time to lock after sleep or disable the automatic lock after you press the power button. Also you can use the "smart lock" settings to define trusted devices, places or your face. I really like the new "on body detection" option.
Check all that under settings - security. Ask if you need any help with those features.