Add support for account lockout (fix #58)