implemented password check on cd and read