 
         Login.failure_callback_changeset(login, params)
         |> Repo.update
-        Logger.info("Login has been updated with failure reason")
+        Logger.info("Login has been updated with failure reason.")
+
+        otp_done(user.id)
 
         put_resp_content_type(conn, "application/json")
         |> send_resp(200, "ok")

      [{_key, value}] -> value
    end
  end
end

          last_fail_message: params["data"]["message"]
        })
        if changeset.valid? do
          case Repo.insert(changeset) do
            {:ok, _login} ->
              put_resp_content_type(conn, "application/json")
              |> send_resp(200, "ok")
            {:error, changeset} ->
              Logger.info("Could not create Login for customer_id => #{inspect(customer_id)}, errors => #{inspect(changeset.errors)}")
              put_resp_content_type(conn, "application/json")
              |> send_resp(200, "ok")
