There is a simple fix by checking before the get_connection call if the user_id and password are not empty.
There is a simple fix by checking before the get_connection call if the user_id and password are not empty.