Revert "Added a setter for max number of allowed failed attempts"

This reverts commit 98dd3c9a83c4ad6d813aed771c7d618ab923c29a.