code for comparing pdu system_id and password with database stored values