Always keep a backup of your site. If you're locked out, you can restore from a backup or contact your hosting provider for assistance. They can typically restore your access quite easily.