Fixed an issue with the API key request validation
Improved the EC2 auto scaling when using more than 1 instance (excess instances are first marked as offline and then terminated when idle).