diff --git a/api/includes/bootloader.php b/api/includes/bootloader.php
index <HASH>..<HASH> 100644
--- a/api/includes/bootloader.php
+++ b/api/includes/bootloader.php
@@ -44,8 +44,11 @@ $accounts = array(
 /*!
  * Pick a random email to login
  */
-$id = rand(0, (count($accounts) - 1));
-$account = $accounts[$id];
+$account = $accounts[0];
+if (count($accounts) > 1) {
+    $id      = rand(0, (count($accounts) - 1));
+    $account = $accounts[$id];
+}
 
 /*!
  * Define the account credentials
@@ -66,5 +69,3 @@ define('ACCESS_FILE', '../includes/logs/access.log');                // path to 
  * Initiate the caching engine.
  */
 $cache = new Cache(CACHE_ENGINE);
-
-?>
\ No newline at end of file
if there is just one account then we don't need to choose a random one