Refactored the code of the plugin and implemented the second factor authentication.